package com.niu.wm.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;

import com.niu.wm.model.Customer;
import com.niu.wm.vo.CustomerVO;
import com.niu.wm.form.CustomerSearchForm;

public interface CustomerMapper {	
	int insert(Customer customer);
	
	int update(Customer customer);
	
	int delete(Long id);
	
	Customer selectByPrimaryKey(Long id);
	
	int countCustomer(@Param("params") CustomerSearchForm form);
	
	List<CustomerVO> queryCustomer(@Param("params") CustomerSearchForm form, @Param("pager")Pageable pageable);
}
